﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<title><?php echo $titreblog; ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<?php
	/*
	*	Boucle pour generer les liens vers les css a partir du tableau css
	*/
	foreach($css as $i) {
		echo "<link rel='stylesheet' type='text/css' href='".base_url()."css/".$i."' media='screen'/>\n";
	}
	?>

</head>

<body>
<div id='site'>
	<div id='header'>
		<h1><?php echo $titreblog; ?></h1>

	</div>
	
	
	<div id='menu_haut'>
		<ul>
		<?php
		foreach($menu as $val_menu) {
		echo "<li>".$val_menu."</li>\n";
		}
		?>
		</ul>

	</div>
	
	
	<div id='milieu_site'>
		<div id='menu_gauche'>
		
			<?php
			foreach($smenu as $titre_smenu=>$val_smenu) {
				echo "<h3>".$titre_smenu."</h3>";
				
				echo "<ul>\n";
				foreach($val_smenu as $item_smenu) {
					echo "<li>".$item_smenu."</li>";
				}
				echo "</ul>\n";
				
			}
			?>
			
		</div>
				
		<div id='contenu'>
		
		<?php
					require_once "PHPTube/phptube.php";
					
					$tube = new PHPTube ("blog347","premiermdp", false);
					$id = $tube->upload ($nom, "Essai2avi", "test blog inf347", "Video du blog d'inf347 groupe1", 22, "FR");
		?>
			
		</div>
		
		<div id='contenu_sans_menu'>
		</div>
	</div>
	
	
	<div id='pied_page'>
		<h4>mentions légales etc etc...</h4>
	</div>

	
</div>
</body>

<?php
/*
*	Boucle pour generer les liens vers les script javascript ?artir du tableau javascript.
*/

foreach($javascript as $js) {
	echo "<script type='text/javascript' src='".base_url()."javascript/".$js."'></script>\n";
}
?>


</html>